package com.hyperfix.models.washer.pojos;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author JiangChunYu
 * 2024/4/17
 */
@Data
public class Station implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 站场编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 站场名称
     */
    private String name;
    /**
     * 站场位置
     */
    private String position;
    /**
     * 站场类型
     */
    private String type;
    /**
     * 管线数量
     */
    private Integer pipelineNum;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    /**
     * 井队编号
     */
    private Integer teamId;
}
